<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="./css/bootstrap.css">
  <style>
    .box {
      background-color: pink;
    }

    .box-1 {
      background-color: pink;
    }

    .box-2 {
      background-color: skyblue;
    }
  </style>
</head>

<body>
  <div class="container box">
    <h1>bootstrap</h1>
  </div>
  <hr>
  <h1>栅格系统</h1>
  <div class="container">
    <div class="row">
      <div class="box-1 col-lg-6 col-xs-3 col-sm-8">123</div>
      <div class="box-2 col-lg-6 col-xs-9 col-sm-4">345</div>
    </div>
  </div>
  <h1>列偏移：让两个相邻的列不想邻</h1>
  <div class="container">
    <div class="row">
      <div class="box-1 col-lg-6 col-xs-3 col-sm-8">123</div>
      <div class="box-2 col-lg-5 col-lg-offset-1 col-xs-9 col-sm-4">345</div>
    </div>
  </div>
  <h1>列嵌套</h1>
  <div class="container">
    <div class="row">
      <div class="box-1 col-lg-6 col-xs-3 col-sm-8">
        <!--下方row两个div共分上方box-1 col-lg的六份 -->
        <div class="row">
          <div class="col-lg-1" style="background-color: aqua;">111</div>
          <div class="col-lg-11" style="background-color: brown;">222</div>
        </div>
      </div>
      <div class="box-2 col-lg-6 col-xs-9 col-sm-4">345</div>
    </div>
  </div>
  <h1>列排序</h1>
  <div class="container">
    <div class="row">
      <!-- 
        col-lg-push-* 往右推多少 往右移动
        col-lg-pull-* 往左拉多少 往左移动
      -->
      <div class="box-1 col-lg-6 col-lg-push-6 col-xs-3 col-sm-8">123</div>
      <div class="box-2 col-lg-6 col-lg-pull-6 col-xs-9 col-sm-4">345</div>
    </div>
  </div>
</body>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.js"></script>
<script>

</script>

</html>